package cn.may.controller;

import cn.may.domain.bug.Bug;
import cn.may.service.BugService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author mayuanbao
 * @date 2019-06-18 10:19
 */
@RestController
public class BugController {
    @Resource
    BugService bugService;
    @GetMapping("/getBugById/{id}")
    public Bug getById(@PathVariable("id") Integer id) {
        return bugService.findById(id);
    }
}
